
  // @ts-nocheck

  import React  from 'react';
  import { Provider as ProviderModel } from './index.tsx';
  import { models as rawModels } from './models.ts';
  
  export function Provider(props: any) {
    const models = React.useMemo(() => {
      return Object.keys(rawModels).reduce((memo, key) => {
        memo[rawModels[key].namespace] = rawModels[key].model;
        return memo;
      }, {});
    }, []);
    return <ProviderModel models={models} {...props}>{ props.children }</ProviderModel>
  }
  
  